package day0519;

import java.util.Scanner;

public class Test7 {
    //将a和b的值进行升序排列
    public static void main(String[] args) {
        int a= 5;//new Scanner(System.in).nextInt();
        int b= 4;//new Scanner(System.in).nextInt();
        //2.判断，如果a>b 就交换a和b
        if(a>b){
           /*a=a^b;
           b=a^b;
           a=a^b;*/

           /*b= a+b; //9
           a= b-a;//5
           b= b-a;*/

            int t=a;
            a=b;
            b=t;

        }
        //3.打印a和b
        System.out.println(a+","+b);
    }
}
